import {apilink} from "@/api/api.js"
export let findx={
    state:{
        new_findinfo:""
    },
    mutations:{
        xiugai(state,payload){
            state.new_findinfo=payload
        }
    },
    actions:{
        findinfo(context){
            apilink("/find_info","get").then((ok)=>{
                console.log(ok.data.find)
                context.commit("xiugai",ok.data.find)
            }).catch((err)=>{
                console.log(err)
                alert("数据获取失败")
            })
        }
    }
}